package com.example.ceedataanalysis.controller;

import com.example.ceedataanalysis.entity.SchoolRank;
import com.example.ceedataanalysis.service.ISchoolRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/schoolRank")
public class SchoolRankController {
    @Autowired
    private ISchoolRankService schoolRankService;

    @RequestMapping("/getPage")
    public String getPage() {
        return "schoolRank";
    }

    @ResponseBody
    @RequestMapping("/getSchoolRank")
    public List<SchoolRank> getSchoolRank() {
        return schoolRankService.getSchoolRank();
    }

    @ResponseBody
    @RequestMapping("/getDoctorRank")
    public List<SchoolRank> getDoctorRank() {
        return schoolRankService.getDoctorRank();
    }

    @ResponseBody
    @RequestMapping("/getMasterRank")
    public List<SchoolRank> getMasterRank() {
        return schoolRankService.getMasterRank();
    }

    @ResponseBody
    @RequestMapping("/getKeyDiscipline")
    public List<SchoolRank> getKeyDiscipline() {
        return schoolRankService.getKeyDiscipline();
    }

    @ResponseBody
    @RequestMapping("/getKeyLaboratory")
    public List<SchoolRank> getKeyLaboratory() {
        return schoolRankService.getKeyLaboratory();
    }
}
